package cn.eeepay.framework.dao;

import cn.eeepay.framework.model.WarningConfigTemplate;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface WarningConfigTemplateDao {

    @Update("UPDATE warning_config_template set msg_receiver = #{msgReceiver} where warn_type = #{type}")
    int update(@Param("type") int type, @Param("msgReceiver") String msgReceiver);

    @Select("select * from warning_config_template")
    @ResultType(WarningConfigTemplate.class)
    List<WarningConfigTemplate> select();

}
